<?php
namespace app\manager\controller;
/**
 * 基本消息
 */
class BaseMsg extends Base
{
	protected $pk = 'id';
	protected $data = [];
	public function init(){
		$this->data = $this->model->find(1); 
	}
	public function create(){
		return $this->fetch( '', ['data' => $this->data] );		
	}
	public function save(){
		$query = ['method'=>'saveBaseMsgs', 'success' => null, 'error' => null];
		$this->store($this->request->post(['id' => $this->data[$this->pk]]), $query, function(){});
	}
}

?>